package com.producteev4j.model.json.task;

import com.producteev4j.model.response.BaseResponse;
import com.producteev4j.model.response.TaskWrapper;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: jcarrey
 * Date: 18/05/11
 * Time: 18:00
 * To change this template use File | Settings | File Templates.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class TaskListWrapperImpl extends BaseResponse {

    private List<TaskWrapperImpl> tasks;

    private List<TaskImpl> taskList;

    public List<? extends TaskWrapper> getTasks() {
//        taskList = new ArrayList<TaskImpl>();
//        if (tasks != null) {
//            for (TaskWrapperImpl t : tasks) {
//                taskList.add(t.getTask());
//            }
//        }
        return tasks;
    }

    public void setTasks(List<TaskWrapperImpl> tasks) {
        this.tasks = tasks;
    }
}
